package com.rxcloud.securityoauth.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.rxcloud.securityoauth.entity.SysUser;
import com.rxcloud.securityoauth.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ruoxi
 * @since 2021-04-30
 */
@RestController
@RequestMapping("/sys/user")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;


    @GetMapping("/getAllUser")
    private List<SysUser> getAllUser(){
//        LambdaQueryWrapper<SysUser> sysUserLambdaQueryWrapper = new LambdaQueryWrapper<>();
        List<SysUser> sysUserList = sysUserService.list();
        return sysUserList;
    }
}
